From 36a72c1e42900b2f093ca8a2a3aa80ff1558c353 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 23 May 2011 18:35:04 +0100 Subject: [PATCH] drivers/passthrough: Revert 23352:ea48976517af -- incorrect bugfix. Signed-off-by: Keir Fraser --- xen/drivers/passthrough/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 1cd82d632f..e30cd950a3 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -173,11 +173,11 @@ out: int pci_remove_device(u8 bus, u8 devfn) { - struct pci_dev *pdev, *tmp; + struct pci_dev *pdev; int ret = -ENODEV; spin_lock(&pcidevs_lock); - list_for_each_entry_safe ( pdev, tmp, &alldevs_list, alldevs_list ) + list_for_each_entry ( pdev, &alldevs_list, alldevs_list ) if ( pdev->bus == bus && pdev->devfn == devfn ) { ret = iommu_remove_device(pdev); -- 2.30.2